<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/6/24 0024
  Time: 下午 15:18
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<% String path = request.getContextPath();%>
<div class="title">
    <h1>推荐分类</h1>
    <span>所在地区</span>
    <span>山东/青岛</span>
</div>
<c:forEach items="${requestScope.pageInfo.list}" var="garbage">
    <dl>
        <dt><img src="<%=path%>/static/images/${garbage.picture}" alt=" ${garbage.texture.title}"></dt>
        <dd>
            <h3><span>
                       ${garbage.garbageType.title}>
                      <c:if test="${garbage.texture.texture.title eq null}" var="flag"></c:if>
          <c:if test="${not flag}">${garbage.texture.texture.title}> </c:if>
                   ${garbage.texture.title} > ${garbage.name}</span></h3>
            <div class="icon">
                <img src="<%=path%>/static/images/${garbage.garbageType.inco}">
                <c:if test="${garbage.texture.texture.title eq null}" var="flag"></c:if>
                <c:if test="${not flag}">
                <img src="<%=path%>/static/images/${garbage.texture.texture.inco}">
                </c:if>
                <img src="<%=path%>/static/images/${garbage.texture.inco}">
                <img src="<%=path%>/static/images/${garbage.picture}">
            </div>
            <a class="bun" href="<%=path%>/web/garbage/information?id=${garbage.id}" data-id="${garbage.id}">查看详情</a>
        </dd>
    </dl>
</c:forEach>
<div STYLE="text-align: center" class="pageList">
    <span>共${requestScope.pageInfo.pages}页</span>
    <c:forEach items="${requestScope.pageInfo.navigatepageNums}" var="i">
        <span>[<a href="javascript:void(0);" id="${i}" >${i}</a>]</span>
    </c:forEach>
</div>

